<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="author" content="">
    <title></title>
    <% include("../inc/input_css.html"){}%>
    <style>
        .control-label{
            width: 140px!important;
        }
    </style>

    <%
    var isAdd = false;
    var isEdit = false;
    if(isEmpty(brandStoreCategory.id)){
    isAdd = true;
    }else{
    isEdit = true;
    }%>

</head>

<body>
<div class="ibox">
    <div class="ibox-title">
        <div class="pull-left mbx navbar_title">
            <span class="current">品牌门店</span>
            <span class="line">/</span>
            <span class="current"><a href="/shop/brandStoreCategory/list">门店类别</a></span><span class="line">/</span>
            <%if(isAdd){%>添加门店类别<%}else{%>编辑门店类别<%}%>
        </div>
    </div>
    <div class="ibox-content">
        <div class="wrapper wrapper-content">
            <div class="row">
                <div class="padding-40">
                    <form method="post" action="<%if (isAdd){%>${base}/shop/brandStoreCategory/save<%}else{%>${base}/shop/brandStoreCategory/update<%}%>"  class="form-horizontal form-validate">
                        <input type="hidden" name="brandStoreCategory.id" value="${brandStoreCategory.id!}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="maroon">*</span>门店类别</label>
                            <div class="col-sm-3">
                                <input type="text" name="brandStoreCategory.name" value="${brandStoreCategory.name!}" class="form-control light-input" data-rule-required="true">
                                <input type="hidden" name="demo.id" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">门店类别描述</label>
                            <div class="col-sm-3">
                                <textarea id="personInfo" name="brandStoreCategory.description" rows="10" style="width: 100%">${brandStoreCategory.description!}</textarea>
                            </div>
                        </div>

                        <div class="form-group" style="margin-top: 24px">
                            <label class="col-sm-2 control-label "></label>
                            <div class="col-sm-4 col-sm-offset-0">
                                <button class="hive-btn-cancle" id="btn_cancle" type="button" onclick="history.back()">&nbsp;取消&nbsp;</button>
                                <button class="hive-btn hive-btn-primary margin-left-8" type="submit">&nbsp;提交&nbsp;
                                </button>
                            </div>
                        </div>

                    </form>

                </div>
            </div>
        </div>
    </div>
</div>

<% include("../inc/input_js.html"){}%>
<!-- 自定义js -->
<!--kindEditor-->
<script src="https://static.9hive.cn/global/vendor/kindeditor/kindeditor-all-min.js"></script>
<script src="https://static.9hive.cn/global/vendor/kindeditor/lang/zh-CN.js"></script>
<script type="text/javascript">
    KindEditor.ready(function (K) {
        personInfoeditor = K.create("#personInfo", {
            themeType: 'simple',
            allowFileManager: true,
            width:"300%",
            height:"260px",
            uploadJson: '${base}/file/uploadfile?shopId=${shopId!}&type=k',
            fileManagerJson: '${base}/file/fileManagerJson?shopId=${shopId!}'
        });
    });
</script>
</body>
</html>